<extend name="Common@Layout:hui-admin" />
<block name="title"><title>Administator管理后台</title></block>
<block name="style">
<style>
.form .row {margin-top:10px;}
</style>
</block>

<block name="main">
<div class="pd-20">
	
	<form action="{:u('detail_post')}" method="post" class="form form-horizontal validator_form close-dialog" id="form-article-add">
	<div class="row cl">
		<label class="form-label col-3 text-r">姓名：</label>
		<div class="formControls col-8"><span>{$info.student}</span></div>
	</div>
	<div class="row cl">
		<label class="form-label col-3 text-r">电话：</label>
		<div class="formControls col-8">{$info.tel}</div>
	</div>
	<div class="row cl">
		<label class="form-label col-3 text-r">家长姓名：</label>
		<div class="formControls col-8">{$info.jzxm}</div>
	</div>
	<div class="row cl">
		<label class="form-label col-3 text-r">校区：</label>
		<div class="formControls col-8">{$info.xiaoqu.title}</div>
	</div>
	<div class="row cl">
		<label class="form-label col-3 text-r">课程：</label>
		<div class="formControls col-8">{$info.kecheng.title}</div>
	</div>
	<div class="row cl">
		<label class="form-label col-3 text-r">班级：</label>
		<div class="formControls col-8">{$info.banji.lessoncode}</div>
	</div>
	<if condition="$info['order']">
	<div class="line mt-10"></div>
	<php>
	  $type = C('ORDER_TYPE');
	  if($info['order']['status'] == 1) $status = '<span style="color:green">已支付</span>';
	  if($info['order']['status'] == 2) $status = '<span style="color:red">未支付</span>';
	  if($info['order']['status'] == 3) $status = '<span style="color:blue">已过期</span>';
	  $stustatus = array('laosheng'=>'老生','xinsheng'=>'新生');
	  </php>
  	<div class="row cl">
		<label class="form-label col-3 text-r">订单编号：</label>
		<div class="formControls col-8"><span>{$info.order.ddbh}</span></div>
	</div>
	<div class="row cl">
		<label class="form-label col-3 text-r">金额：</label>
		<div class="formControls col-8">{$info.order.total}</div>
	</div>
	<div class="row cl">
		<label class="form-label col-3 text-r">交易状态：</label>
		<div class="formControls col-8 f-20">{$status}</div>
	</div>
	<eq name="info['order']['status']" value="1">
	<div class="row cl">
		<label class="form-label col-3 text-r">微信订单号：</label>
		<div class="formControls col-8">{$info.order.wxddh}</div>
	</div>
	</eq>
	<div class="row cl">
		<label class="form-label col-3 text-r">类型：</label>
		<div class="formControls col-8">{$type[$info['order']['type']]}</div>
	</div>
	</if>
	<div class="line mt-10"></div>
		<div class="row cl">
			<label class="form-label col-3">备注：</label>
			<div class="formControls col-9">
				<textarea name="remark" cols="" rows="" class="textarea"  placeholder="说点什么...最少输入10个字符" datatype="*10-100" dragonfly="true" nullmsg="备注不能为空！" onKeyUp="textarealength(this,200)">{$info.remark}</textarea>
				<p class="textarea-numberbar"><em class="textarea-length">0</em>/200</p>
			</div>
		</div>
	  	<div class="row cl">
	    	<div class="col-9 col-offset-3">
	    		<input type="hidden" name="id" value="{$info.id}">
	      		<input class="btn btn-primary radius" type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
	    	</div>
	  	</div>
	</form>
</div>
</block>

<block name="script">
<script type="text/javascript">

</script>
</block>